package lambda.supplier;

import java.util.function.Supplier;

/**
 * @author kxd
 * @datetime 2021/7/16 15:17
 */
public class TestSupplier {
    private int age;

    TestSupplier() {
        System.out.println(age);
    }

    public static void main(String[] args) {
        Supplier<TestSupplier> sup = TestSupplier::new;
        System.out.println("1-----");
        sup.get();
        System.out.println("2-----");
        sup.get();
    }

}
